#include <iostream>

auto woof_n_times(std::ostream & os, int n, const char* word = "Wang!") {
    for (int i = 0; i < n; ++i) { os << word; }
}

int main() {
    int a, b;
    
    std::cin >> a >> b;
    
    woof_n_times(std::cout, a);
    woof_n_times(std::cout, b);
    
    std::cout << "\n";
}
